//
//  Hud.h
//  Maze
//
//  Created by Lin Tian on 9/13/11.
//  Copyright 2011 tina. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "cocos2d.h"
#import "Menu.h"
#import "LocalPlayer.h"

#define SETTINGMENU 1
#define ITEMLIST 2

@interface Hud : CCLayer {
    CCLabelTTF *scoreLabel;
    NSMutableArray* itemList;
    LocalPlayer *player;
    NSMutableArray* itemToRemove;
}

+(CCScene*)scene;
-(id)initWithPlayer:(LocalPlayer*)aPlayer;
-(void)transit:(CCMenuItem*)sender;
-(BOOL)addItemIcon:(Item*)anItem;
-(void)useItem:(CCMenuItem*)sender;
-(void)removeIcon:(ccTime)dt;

@property (nonatomic, retain) CCLabelTTF *scoreLabel;
@property (nonatomic, retain) NSMutableArray* itemList;
@property (nonatomic, retain) LocalPlayer* player;
@property (nonatomic, retain) NSMutableArray* itemToRemove;

@end
